﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReviewForm.aspx.cs" Inherits="DQYT.HTDZ.Web.Views.LSZD.ReviewForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="js/lhgdialog/jquery-1.7.2.min.js"></script> 
    <script src="js/lhgdialog/lhgcore.lhgdialog.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/lhgdialog/lhgdialog.min.js"></script>   
    <style type="text/css">
        .style1
        {
            width: 101%;
            height: 45px;
        }
        .style3
        {
            height: 53px;
        }
        .linkbutton
        {
            text-decoration: none;
        }      
       .Freezing 
          { 
    
   position:relative ; 
   table-layout:fixed;
   top: expression(this.offsetParent.scrollTop);   
   z-index: 10;
      }
      
.Freezing th{text-overflow:ellipsis;overflow:hidden;white-space: nowrap;padding:2px;}
    </style>
    <script type="text/javascript">
            
        function jumpToParent(para) {

            parent.openReportForm(para);
        }

        function addAdvise() {
            var wellid = document.getElementById('lbl_jh').innerHTML;
            var jcrq = document.getElementById('lbl_cjrq').innerHTML;
            var url = "Views/LSZD/Add_advise.aspx?wellid=" + wellid + "&jcrq=" + jcrq + " ";
            url = encodeURI(url);
            $.dialog({
                id: 'add_zdjy',
                title: ' 诊断信息添加',
                width: 620,
                height: 350,
                max: false,
                min: false,
                cover: true,
                zIndex: 20000,
                parent: "",
                content: 'url:' + url + '',               
                close: function () {                   
                    document.getElementById('<%= libSY.ClientID %>').click();
                }
            });           
        }
        function updateAdvise(para) {
            var url = "Views/LSZD/Add_advise.aspx" + para;          
            $.dialog({
                id: 'update_zdjy',
                title: ' 诊断信息编辑',
                width: 620,
                height: 350,
                cover: true,
                max: false,
                min: false,
                zIndex: 20000,
                content: 'url:' + url + '',               
                close: function () {
                    document.getElementById('<%= libSY.ClientID %>').click();
                }
            });
        }

        function listRefresh() {
            parent.openZd();
        }     
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    <br />
                    井名：<asp:Label ID="lbl_jh" runat="server" Text=""></asp:Label>
                </td>
                <td>
                    <br />
                    　　　采集日期：<asp:Label ID="lbl_cjrq" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <span style="float: right;">
        <input id="btn_tjzd" style="width: 100px; height: 30px;" type="button" value="添加诊断信息"
            class="submit" onclick="addAdvise()" />
    </span>
    <br />
    <br />
    <br />
     <asp:ScriptManager ID="ScriptManager1" runat="server">
                  </asp:ScriptManager>
                   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>
    <div  style="width: 100%;overflow-y: scroll; height:320px; font-size:13px; color: #ffffff;">
        <asp:GridView ID="dgvTest" runat="server" AutoGenerateColumns="False" CellPadding="4"
            Width="100%" ForeColor="#333333" GridLines="Horizontal" DataKeyNames="ID" CssClass="GridViewStyle"
            Style="margin: 0 auto;" OnRowDataBound="dgvTest_RowDataBound">
            <AlternatingRowStyle BackColor="White" />
            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="30px"  CssClass="Freezing"/>
            <RowStyle BackColor="#EFF3FB" ForeColor="#212121" HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField ItemStyle-Width="30%" HeaderText="基本数据">
                    <ItemTemplate>
                        <table>
                            <tr>
                                <td align="right">
                                    采集日期：
                                </td>
                                <td align="left">
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("JCRQ") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    诊断人：
                                </td>
                                <td align="left">
                                    <asp:Label ID="Label3" runat="server" Text='<%# Eval("ZDR") %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    诊断时间：
                                </td>
                                <td align="left">
                                    <asp:Label ID="Label8" runat="server" Text='<%# Eval("ZDSJ") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="45%" HeaderText="诊断建议">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("ZDJY") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="25%" HeaderText="功能操作">
                    <ItemTemplate>                  
                        <asp:LinkButton ID="LinkButton1" CssClass="linkbutton" runat="server" CommandArgument='<%#Eval("ID") %>'
                            OnClick="LinkButton1_Click">修改<span class="shuxian">|</span></asp:LinkButton>
                        <asp:LinkButton ID="LinkButton5" CssClass="linkbutton" runat="server" CommandArgument='<%#Eval("ID") %>'
                            OnClick="LinkButton5_Click">报表</asp:LinkButton>
                        <asp:LinkButton ID="Lbt_Del" CssClass="linkbutton" CausesValidation="False" CommandName="Del"
                            OnClientClick="javascript:return confirm('是否确认删除?');" OnClick="Lbt_Del_Click"
                            CommandArgument='<%# Eval("ID") %>' runat="server"><span class="shuxian">|</span>删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerStyle BackColor="#284775" ForeColor="#212121" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />           
            <EditRowStyle BackColor="#999999" />
        </asp:GridView>
    </div>

    <div style="width: 100%">
        <div class="FYSTYLE" style="width: 100%; margin: 0 auto; font-size:13px; color:Blue;">
            <div style="float: left; width: 186px; border-left: solid 1px #c6c6c6;
                height: 16px;">
                显示<asp:Label ID="lblfirstcoutn" runat="server" Text="1"></asp:Label>-<asp:Label ID="lblendcount"
                    runat="server" Text="20"></asp:Label>记录(共<asp:Label ID="lblALLcount" runat="server"
                        Text="1"></asp:Label>记录)</div>
            <div style="float: right; width: 280px; ">
                <asp:LinkButton ID="libSY" runat="server" OnClick="libSY_Click" ForeColor="Blue"
                    >首页</asp:LinkButton>
                <asp:LinkButton ID="libsyy" runat="server" Style="margin-left: 10px;"
                    OnClick="libsyy_Click" ForeColor="Blue">上一页</asp:LinkButton>
                <asp:LinkButton ID="libxyy" runat="server" Style="margin-left: 10px;"
                    OnClick="libxyy_Click" ForeColor="Blue">下一页</asp:LinkButton>
                <asp:LinkButton ID="libwy" runat="server"  Style="margin-left: 10px;"
                    OnClick="libwy_Click" ForeColor="Blue">尾页</asp:LinkButton>
                <span style="margin-left: 10px;">第</span><asp:Label ID="lblpagecount"
                    runat="server" Text="1" ></asp:Label>页
                              </div>
        </div>
    </div>
    </ContentTemplate>
     </asp:UpdatePanel>

    </form>
</body>
</html>
